<!--车辆上户办理-->
<template>
<div class="public-common">
    <div class="public-title">车辆上户申请操作列表</div>
    <el-button type="primary" icon="el-icon-printer"style="float: right; margin-bottom: 10px;">打印</el-button>
    <el-button type="primary" icon="el-icon-edit" style="float: right; margin-bottom: 10px; margin-right: 10px;" @click="dialogVisible=true">上户申请</el-button>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="通知单号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="原车号" prop="a2">
            </el-table-column>
            <el-table-column
                label="申请状态" prop="a3">
            </el-table-column>
            <el-table-column
                label="原车辆类型" prop="a4">
            </el-table-column>
            <el-table-column
                label="车辆性质" prop="a5">
            </el-table-column>
            <el-table-column
                label="公司名称" prop="a6">
            </el-table-column>
            <el-table-column
                label="车主姓名" prop="a7">
            </el-table-column>
            <el-table-column
                label="入户通知单有效期" prop="a8">
            </el-table-column>
            <el-table-column
                label="申请提交人" prop="a9">
            </el-table-column>
            <el-table-column
                label="申请提交时间" prop="a10">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
        <el-dialog title="车辆上户申请" :visible.sync="dialogVisible" width="50%" >
        	<el-form :model="editForm" ref="editForm" label-width="80px" class="qysb-form-f" >
        	<el-scrollbar style="height:100%;">
            <div class="fuwukab">通知单号查询</div>
        		<el-row>
        			<el-col :span="10">
        			  <el-form-item label="通知单号" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.shangh1" >
                    </el-input>
        			  </el-form-item>
        			</el-col>
              <el-col :span="10">
                <el-form-item label="业务员编号" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh2" >
                    </el-input>
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">确认查询</el-button>
              </el-col>
            </el-row>
            <div class="fuwukab">更新车辆原信息</div>
            <el-row>
              <el-col :span="12">
                <el-form-item label="原车号" class="cyqlabel">
                		<el-select  size="small"style="width: 100%;" placeholder="请选择"  v-model="editForm.shangh3">
                			<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                		</el-select>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="原车辆类型" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh4" ></el-input>
                </el-form-item>
              </el-col>
        		</el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="原车身颜色" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh5" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="车辆性质" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh6" ></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="单位名称" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh7" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="车主姓名" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh8" ></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="销户日期" class="cyqlabel">
                		<el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="editForm.shangh9" type="date"></el-date-picker>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="入户通知单有效期" class="cyqlabel">
                		<el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="editForm.shangh10" type="date"></el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="经营权期限" class="cyqlabel">
                		<el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="editForm.shangh11" type="date"></el-date-picker>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="有偿票号" class="cyqlabel">
                		<el-input size="small" v-model="editForm.shangh12" ></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <div class="fuwukab">更新车辆新信息</div>
            <el-row>
              <el-row>
                <el-col :span="12">
                  <el-form-item label="车辆来源" class="cyqlabel">
                  		<el-input size="small" v-model="editForm.shangh13" ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="更新车型" class="cyqlabel">
                  		<el-input size="small" v-model="editForm.shangh14" ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="12">
                  <el-form-item label="车身颜色" class="cyqlabel">
                  		<el-select  size="small"style="width: 100%;" placeholder="请选择"  v-model="editForm.shangh15">
                  			<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                  		</el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="出厂日期" class="cyqlabel">
                  		<el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="editForm.shangh16" type="date"></el-date-picker>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="12">
                  <el-form-item label="发动机号" class="cyqlabel">
                  		<el-input size="small" v-model="editForm.shangh17" ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="车身编号" class="cyqlabel">
                  		<el-input size="small" v-model="editForm.shangh18" ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </el-row>
            <div style="text-align:center;margin-top:6px;">
              <el-button type="info" size="small" @click="dialogVisible=false">取消</el-button>
            </div>
           </el-scrollbar>
           </el-form>
         </el-dialog>
</div>
</template>

<script>
export default {
    data(){
        return {
          dialogVisible:false,
          tabledata:[
            {
                a1: 'TZ12381',
                a2: '陕A23881',
                a3: '已申请',
                a4: '轿车',
                a5: '集体',
                a6: '东软集团',
                a7: '王大拿',
                a8: '2年',
                a9: '丁建国',
                a10: '2018-10-10',
            },
            {
                a1: 'TZ12382',
                a2: '陕A23456',
                a3: '已申请',
                a4: 'SUV',
                a5: '集体',
                a6: '东软集团',
                a7: '刘立国',
                a8: '2年',
                a9: '丁建国',
                a10: '2018-10-10',
            },
            {
                a1: 'TZ12383',
                a2: '陕A23123',
                a3: '已申请',
                a4: '轿车',
                a5: '集体',
                a6: '东软集团',
                a7: '王小孩',
                a8: '2年',
                a9: '丁建国',
                a10: '2018-10-10',
            },
          ],
          page:{
            now:1,
            pagesize:10,
            sizes:[2,10, 20, 50, 100],
            total:0,
            key:''
          },
          item:[
          	{text:'红色',value:'0'},
          	{text:'白色',value:'1'},
          	{text:'黑色',value:'2'},
          ],
          editForm:{
            shangh1:'',
            shangh2:'',
            shangh3:'',
            shangh4:'',
            shangh5:'',
            shangh6:'',
            shangh7:'',
            shangh8:'',
            shangh9:'',
            shangh10:'',
            shangh11:'',
            shangh12:'',
            shangh13:'',
            shangh14:'',
            shangh15:'',
            shangh16:'',
            shangh17:'',
            shangh18:'',
          }
        }
    },
    methods:{
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .cyqlabel .el-form-item__label{ width: 100px !important;}
  .cyqlabel .el-form-item__content{ margin-left: 100px  !important;}
  .public-common .el-form-item .el-input{ width: 100%;}
  .public-title,.fuwukab{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}
  .el-scrollbar__wrap{ margin: 0 !important;}
</style>
